package com.chery.media.library.extend.livedata

import androidx.lifecycle.MutableLiveData

/**
 * @author MoYe_PanDeng
 * @ClassName:
 * @Description:自定义的Float类型 MutableLiveData 提供了默认值，避免取值的时候还要判空
 * @date: 2021/4/10
 */
class FloatLiveData(value: Float = 0f) : MutableLiveData<Float>(value) {
    override fun getValue(): Float {
        return super.getValue()!!
    }
}